//
//  ByNitificationCell.m
//  jmsfhz_ios
//
//  Created by pro on 16/7/19.
//  Copyright © 2016年 pro. All rights reserved.
//

#import "ByNotificationCell.h"

@implementation ByNotificationCell

+ (instancetype)createCellInTableview:(UITableView *)table {
    
    static NSString *cellIdentifier = @"ByNotificationCell";
    ByNotificationCell *cell = [table dequeueReusableCellWithIdentifier:cellIdentifier];
    if (cell == nil) {
        cell = [[self alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
    }
    return cell;
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style
              reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        self.backgroundColor = [UIColor whiteColor];
        [self initSubviews];
    }
    return self;
}

- (void)initSubviews {
    
    /** 喇叭图片 */
    self.hornView = [[UIImageView alloc] initWithFrame:CGRectMake(7.5, 7.5, 25, 25)];
    self.hornView.image = [UIImage imageNamed:@"资讯-喇叭"];
    [self.contentView addSubview:self.hornView];
    
    /** 内容Label */
    self.contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(self.hornView.right + 5, 5, SCREEN_WIDTH - 10 - (self.hornView.right + 5), 30)];
    self.contentLabel.textColor = [UIColor blackColor];
    self.contentLabel.font = FONT(14);
    self.contentLabel.textAlignment = NSTextAlignmentLeft;
    [self.contentView addSubview:self.contentLabel];
    self.contentLabel.text = @"关于各系组织学生参加2016年浙江省技能人才岗，明确提出了要求高、要求严";
}

@end
